<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:66:"/var/www/fish/application/crm/view/delivermanager/deliverList.html";i:1516864241;}*/ ?>
<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>小鱼ADMIN</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/public/static/css/font.css">
    <link rel="stylesheet" href="/public/static/css/bgadmin.css">
    <script type="text/javascript" src="/public/static/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/public/static/js/bgadmin.js"></script>
	<script type="text/javascript" src="/public/static/js/jquery.form.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <style>
  .layui-input{height:30px;}
  .layui-form-label{line-height: 16px;}
  </style>
  <body>
    <div class="bg-body">
      <div class="layui-row" id="bg_nav_id">
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a>
      </div>
      <div class="layui-row">
        <form class="layui-form ">
          <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">下单时间从：</label>
              <div class="layui-input-inline">
                <input type="text" class="layui-input" id="start_createtime_id" name="start_createtime">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">到：</label>
              <div class="layui-input-inline">
                <input type="text" class="layui-input" id="end_createtime_id" name="end_createtime">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">发货状态：</label>
              <div class="layui-input-inline">
                <select name="shipping_status" id="shipping_status_id" lay-verify="" autocomplete="off" class="layui-input">
                    <option value=""></option>  <!--请选择-->
					<option value="0">未发货</option>  <!--未发货-->
					<option value="3" selected>配货中</option>  <!--配货中-->
					<option value="1">已发货</option>  <!--已发货-->
					<option value="2">收货确认</option>  
					<option value="5">发货中</option>  <!--发货中-->
                </select>
              </div>
            </div>
			<div class="layui-inline">
              <label class="layui-form-label">配送方式：</label>
              <div class="layui-input-inline">
                <select name="shopping_name" id="shopping_name_id" lay-verify="" autocomplete="off" class="layui-input">
                    <option value=""></option>  
					<?php if(is_array($Logistics) || $Logistics instanceof \think\Collection || $Logistics instanceof \think\Paginator): $i = 0; $__LIST__ = $Logistics;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
					<option value="<?php echo $vo['id']; ?>"><?php echo $vo['name']; ?></option>
					<?php endforeach; endif; else: echo "" ;endif; ?>
                </select>
              </div>
            </div>
            <a class="layui-btn layui-btn-small"  style="margin-bottom: 10px;" id="search"  lay-submit="" lay-filter="search"><i class="layui-icon" >&#xe615;</i></a>
        </div>
		</form>
	  </div>
	  <?php if(($username == 'admin') OR ($priv['matchingNum'] == 'Y')): ?>
	  <div class="layui-row">
        <form class="layui-form" action="" id="operateFrom">
			<div class="layui-form-item">
				<div class="layui-inline">
				  <label class="layui-form-label">开始单号：</label>
				  <div class="layui-input-inline">
					<input type="text" class="layui-input" id="start_order_num_id" name="start_order_num">
				  </div>
				</div>
				<div class="layui-inline">
				  <label class="layui-form-label">单号数量：</label>
				  <div class="layui-input-inline">
					<input type="text" class="layui-input" id="end_order_num_id" name="end_order_num">
				  </div>
				</div>
				<a class="layui-btn layui-btn-small"  style="margin-bottom: 10px;" onClick="matchingNumber();">匹配单号</a>
				<a class="layui-btn layui-btn-small"  style="margin-bottom: 10px;" onClick="matchingSFNumber()">匹配顺丰小白单</a>
			</div>
		</form>
	  </div>
	  <?php endif; ?>

      <table class="layui-table" lay-data="{id: 'deliverId', height:500, url:'/index.php/crm/Delivermanager/deliverDataList', page:true, limit:10, limits:[10,20,30,50]}" lay-filter="demo">
        <thead>
        <tr>
          <!--<th lay-data="{checkbox:true, fixed: true}"></th>-->
          <th lay-data="{field:'order_num', align:'center', width:180, fixed: 'left'}">订单号</th>
          <th lay-data="{field:'consignee', width:80, align:'center', fixed: 'left'}">收货人</th>
		  <?php if(($username == 'admin') OR ($priv['display_phone'] == 'Y')): ?>
          <th lay-data="{field:'phone', width:120, align:'center', fixed: 'left'}">收货人号码</th>
		  <?php endif; ?>
		  <th lay-data="{field:'shopping_name', width:100, align:'center'}">配送方式</th>
		  <th lay-data="{field:'logistics_Info', width:100, align:'center'}">物流信息</th>
          <th lay-data="{field:'createname', width:80, align:'center'}">下单坐席</th>
          <th lay-data="{field:'cn_name', width:80, align:'center'}">坐席姓名</th>
          <th lay-data="{field:'logistics_account', width:160, align:'center'}">物流号</th>
          <th lay-data="{field:'logistics_state', width:80, align:'center'}">物流状态</th>
          <th lay-data="{field:'cope_money', width:80, align:'center'}">应付金额</th>
          <th lay-data="{field:'order_status', width:160, align:'center'}">订单状态</th>
          <th lay-data="{field:'createtime', width:120, align:'center'}">下单时间</th>
          <th lay-data="{field:'delivery_address', width:150, align:'center'}">地址</th>
          <th lay-data="{field:'payment', width:100, align:'center'}">支付方式</th>
        </tr>
        </thead>
      </table>
      
    </div>

</body>
<div style="display:none;width:200px;height:100px;"  id="id_test">11111111</div>
<script type="text/javascript" src="/public/static/crm/js/deliverManager/deliverList.js"></script>

</html>